package com.example.demo.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 作者: 谢韬元
 * 日期: 2025/1/17
 * 类名: RoomProperties
 */

@Component
@ConfigurationProperties(prefix = "room")
@PropertySource(value = "classpath:room.properties",encoding = "UTF-8")
public class RoomProperties {

    private String title;
    private String addr;
    private int count;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddr() {
        return addr;
    }

    public void setAddr(String addr) {
        this.addr = addr;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }
}
